import React from "react";
import LayoutComponent from "../../layout";
import { RouteItem } from "../interface/route-item.interface";
import lazyLoad from "../utils/lazy-load";

// 商品模块
const gameTableRouter: Array<RouteItem> = [
	{
		path: 'table-manage',
		element: <LayoutComponent />,
		meta: {
			title: "桌台"
		},
		children: [
			{
				path: "/table-manage/table-list",
				element: lazyLoad(React.lazy(() => import("../../views/game-table/table-list/index"))),
				meta: {
					requiresAuth: true,
					title: "桌台列表",
					key: "dataVisualize"
				}
			},
			{
				path: "/table-manage/sales-panel",
				element: lazyLoad(React.lazy(() => import("../../views/game-table/sales-panel/index"))),
				meta: {
					requiresAuth: true,
					title: "销售面板",
					key: "dataVisualize"
				}
			}
		]
	}
];

export default gameTableRouter;
